package cn.lpz.tst;

import cn.lpz.service.IAccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TetsSpring {
    @Test
    public void run1(){
        ApplicationContext ac= new  ClassPathXmlApplicationContext("applicationContext.xml");
       IAccountService iAccountService= ac.getBean("AccountService", IAccountService.class);
       iAccountService.findAll();
    }
}
